package com.chee.plant.hibernate.object;

import java.util.Calendar;

import com.chee.plant.hibernate.object.base.BaseBattleUser;

public class BattleUser extends BaseBattleUser {
	private static final long serialVersionUID = 1L;

	/* [CONSTRUCTOR MARKER BEGIN] */
	public BattleUser() {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public BattleUser(java.lang.Integer id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public BattleUser(java.lang.Integer id, java.lang.Integer userId,
			java.lang.Integer defense, java.util.Date joinTime,
			java.util.Date retreatTime) {

		super(id, userId, defense, joinTime, retreatTime);
	}

	/* [CONSTRUCTOR MARKER END] */
	public void setDefaults() {
		this.setId(0);
		this.setUserId(0);
		this.setDefense(0);
		this.setJoinTime(Calendar.getInstance().getTime());
		this.setRetreatTime(Calendar.getInstance().getTime());
	}

}